<template>
<div>
  <h2>Vue实现容器拖拽</h2>

  <div v-drag class="panel" >
    <div class="son"></div>
  </div>

</div>
</template>

<script>
export default {
    name:'Drag'

}
</script>

<style lang="scss" scoped>
.panel{
    width: 200px;
    height: 150px;
    position: absolute;
    background-color: coral;
}
.panel[dragged]{
    height: 200px;
}
</style>